import type { RouteRecordRaw } from 'vue-router';

// 定义路由类型
const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Home',
    meta: { title: '工作单填写' },
    component: () => import('@/views/Home/index.vue'), // 假设你的首页组件是HomeView.vue
  },
  {
    path: '/sceneChoose',
    name: 'SceneChoose',
    meta: { title: '场景选择' },
    component: () => import('@/views/SceneChoose/index.vue'),
  },
  {
    path: '/train',
    name: 'Train',
    meta: { title: '' },
    component: () => import('@/views/Train/index.vue'),
  },
  {
    path: '/accessPage',
    name: 'AccessPage',
    meta: { title: '' },
    component: () => import('@/views/Access/index.vue'),
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/Login/index.vue'), // 假设你的关于页面组件是AboutView.vue
  },
  // ...其他路由
];

export default routes;
